import Vue from 'vue';
import Vuex	from 'vuex';
import icon from '../utils/imageBase64.js'
import user	from './modules/user';
import shop from './modules/shop'
import give from './modules/give'
import cart from './modules/cart'
import collection from './modules/collection'
import member from './modules/member'
import editGive from './modules/editGive'
import getLocation from './modules/getLocation'
import browse from './modules/browse'
import record from './modules/record'
import screen from './modules/screen'
import introduce from './modules/introduce'
import help from './modules/help.js'
import shopsname from './modules/shopsname'
import teaselect from './modules/teaselect'
Vue.use(Vuex);

const store = new Vuex.Store({
	state: {
		icon: icon.iconImage
	},
	modules: {
		user, // 用户信息
		shop, // 店铺信息
		give, // 婚纱调整
		cart, // 购物车
		collection, // 收藏商品
		member, // 会员信息
		editGive, // 修改赠品
		getLocation, // 获取位置
		browse, // 获取浏览记录
		record, // 获取记录信息
		screen, // 获取搜索商品列表
		introduce, // 获取商城店铺里面的店铺详情
		help, // 帮助中心详情文章
		shopsname,//店铺名字
		teaselect//老师选择
	}
});

export default store;